package com.mars.module.admin.service;

import com.mars.module.admin.entity.SysInfoConversion;
import com.mars.common.response.PageInfo;
import com.mars.module.admin.request.SysInfoConversionRequest;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 资料转换记录接口
 *
 * @author mars
 * @date 2024-04-08
 */
public interface ISysInfoConversionService {
    /**
     * 新增
     *
     * @param param param
     * @return SysInfoConversion
     */
    SysInfoConversion add(SysInfoConversionRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Long id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Long> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(SysInfoConversionRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return SysInfoConversion
     */
    SysInfoConversion getById(Long id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<SysInfoConversion>
     */
    PageInfo<SysInfoConversion> pageList(SysInfoConversionRequest param);


    /**
     * 查询所有数据
     *
     * @return List<SysInfoConversion>
     */
    List<SysInfoConversion> list(SysInfoConversionRequest param);

    void exportWord(HttpServletResponse response, List<Long> id) throws IOException;
}
